package org.lq.his.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lq.his.dao.PatientRechargeRecordDao;
import org.lq.his.pojo.PatientRechargeRecord;
import org.lq.his.service.PatientRechargeRecordService;
import org.springframework.stereotype.Service;

@Service("patientRechargeRecordService")
public class PatientRechargeRecordServiceImpl implements PatientRechargeRecordService{
	
	@Resource
	private PatientRechargeRecordDao patientRechargeRecordDao;

	public void setPatientRechargeRecordDao(PatientRechargeRecordDao patientRechargeRecordDao) {
		this.patientRechargeRecordDao = patientRechargeRecordDao;
	}

	//根据分页查询充值记录
	@Override
	public List<PatientRechargeRecord> getListByCondition(int start, int limit, PatientRechargeRecord condition,
			String column, String orderBy) {
		
		return patientRechargeRecordDao.getListByCondition(start, limit, condition, column, orderBy);
	}

	//查询分页条数
	@Override
	public Integer getCountByCondition(PatientRechargeRecord condition) {
		
		return patientRechargeRecordDao.getCountByCondition(condition);
	}

	//充值
	@Override
	public void add(PatientRechargeRecord patientRechargeRecord) {
		
		patientRechargeRecordDao.add(patientRechargeRecord);
	}

}
